let origin = {
    ip: '',
    port: ''
};
function setOrigin(ip, port) {
    origin.ip = ip;
    origin.port = port;
}
function getOrigin() {
    return origin;
}

let local_peer_socket_address = {
    ip: '',
    port: ''
}
function setLocalPeerSocketAddress(ip, port) {
    local_peer_socket_address.ip = ip;
    local_peer_socket_address.port = port;
}
function getLocalPeerSocketAddress() {
    return local_peer_socket_address;
}

let local_image_socket_address = {
    ip: '',
    port: ''
}
function setLocalImageSocketAddress(ip, port) {
    local_image_socket_address.ip = ip;
    local_image_socket_address.port = port;
}
function getLocalImageSocketAddress() {
    return local_image_socket_address;
}

module.exports = {
    setLocalPeerSocketAddress,
    setOrigin,
    getLocalPeerSocketAddress,
    getOrigin,
    setLocalImageSocketAddress,
    getLocalImageSocketAddress
}